package social_network.dao;

import social_network.entities.Member;
import social_network.entities.Film;
import social_network.exceptions.NotExistsParameterException;
import social_network.exceptions.NotUniqueParameterException;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Vitaliy Muzalevskiy
 * Date: 13.07.13
 * Time: 17:39
 */
public interface MemberDao {
    void addDirector(Member member) throws NotUniqueParameterException;
    Member selectMemberByID(int id);
    List<Member> selectMemberByFullName(String name, String surname);
    List<Member> selectMemberByName(String surname);
    void deleteMemberByID(int id) throws NotExistsParameterException;
    void updateMemberInfo(int id, String newName, String newSurname)
            throws NotExistsParameterException;
    List<Film> getMemberFilms(int id);
}
